<#--
/**
 * Copyright 2012 Claude Houle claude.houle@gmail.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->
<#-- String -->
String:
<@textfield id="widget" maxlength=10 value="Test" /><br />

<#-- Negative Int -->
Negative Int:
<@textfield id="widget2" maxlength=10 value="-1" regex="^-\\d+$" /><br />

<#-- Positive Int -->
Positive Int:
<@textfield id="widget3" maxlength=10 value="1" regex="^\\d+$" /><br />

<#-- Int -->
Int:
<@textfield id="widget4" maxlength=10 value="2" regex="^-{0,1}\\d+$" /><br />

<#-- Positive Number -->
Positive Number:
<@textfield id="widget5" maxlength=10 value="1.01" regex="^\\d*\\.{0,1}\\d+$" /><br />

<#-- Negative Number -->
Negative Number:
<@textfield id="widget6" maxlength=10 value="-1.01" regex="^-\\d*\\.{0,1}\\d+$" /><br />

<#-- Number -->
Number:
<@textfield id="widget7" maxlength=10 value="2.02" regex="^-{0,1}\\d*\\.{0,1}\\d+$" /><br />